import axios from "@/api/http";
// @ts-ignore
import qs from 'qs'
import {ax} from "@fullcalendar/core/internal-common";

const add = (params: any = {}) => {
    return axios.post('/server/schedule/add', params)
}
const update = (params: any = {}) => {
    return axios.post('/server/schedule/update', params)
}

const between =(params:any={})=>{
    return axios.post('/server/schedule/between',params)
}
const remove=(params:any={})=>{
    return axios.post('/server/schedule/remove',qs.stringify(params))
}
const list=(params:any={})=>{
    return axios.post('/server/schedule/list',params)
}
export default {
    add,
    between,
    update,
    remove,
    list
}
